from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^register/$', views.RegisterView.as_view(), name='register'),  # 注册
    url(r'^login/$', views.LoginView.as_view(), name='login'),
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),
    url(r'^user_center/$',  views.UserCenterView.as_view(), name='usercenter'),
    url(r'^user_center/password/$',  views.UserPasswordView.as_view(), name='password'),
    url(r'^user_center/idcard/$',  views.UserIdCardView.as_view(), name='idcard'),
    url(r'^user_center/question/$',  views.UserQuestionView.as_view(), name='question'),
    url(r'^user_center/user_phone/$',  views.UserPhone.as_view(), name='userphone'),
    url(r'^user_center/email/$',  views.UserEmail.as_view(), name='useremail'),
    url(r'^user_center/user_phone/mod_sms/$',  views.Bind_phone.as_view()),
    url(r'^user_center/email/mod_email/$',  views.Bind_email.as_view()),
    url(r'^address/$',  views.AddressView.as_view(), name='address'),
    url(r'^address/del_address/$',  views.DelAddress.as_view(), name='del_address'),


]
